<nav class="navbar navbar-expand-lg navbar-dark bg-dark margin-tweetme">
  <a class="navbar-brand" href="/">MyTweet</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav">
      <li class="nav-item active">
        <a class="nav-link" href="/global/">Global <span class="sr-only">(current)</span></a>
      </li>
      {% comment %} <li class="nav-item active">
        <a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a>
      </li> {% endcomment %}
      <li class="nav-item">
        <a class="nav-link" href="/profile/edit">Profile Edit</a>
      </li>
      {% comment %} <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          User
        </a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
          <a class="dropdown-item" href="/register">Register</a>
          <a class="dropdown-item" href="/login">Login</a>
          <a class="dropdown-item" href="/logout">Logout</a>
        </div>
      </li> {% endcomment %}
      <div class="btn-group margin-btn-group">
        <button type="button" class="btn btn-primary btn-sm">User</button>
        <button type="button" class="btn btn-primary btn-sm dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          <span class="sr-only">User</span>
        </button>
        <div class="dropdown-menu">
          {% if request.user.is_authenticated %}
          <a class="dropdown-item" href="/logout">Logout</a>
          <a class="dropdown-item" href="/profile/edit">Profile Edit</a>
          {% else %}
          <a class="dropdown-item" href="/login">Login</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="/register">Register</a>
          {% endif %}
        </div>
      </div>
    </ul>
  </div>
</nav>